package com.wie.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 传感器数据
 * @TableName sensor_data
 */
@TableName(value ="sensor_data")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SensorData implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 湿度
     */
    @TableField(value = "humid")
    private String humid;

    /**
     * 二氧化碳浓度
     */
    @TableField(value = "co2")
    private String co2;

    /**
     * 有害气体
     */
    @TableField(value = "harmful_gas")
    private String harmfulGas;

    /**
     * 温度
     */
    @TableField(value = "temperature")
    private String temperature;

    /**
     * 查询时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}